<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>纯CSS实现弧边选项卡</title>
    <link rel="stylesheet" href="212.css">
</head>
<body>
    <div class="tabs">
        <input type="radio" name="tabs" id="label1" hidden checked>
        <input type="radio" name="tabs" id="label2" hidden>
        <input type="radio" name="tabs" id="label3" hidden>
        <div class="label">
            <label for="label1"></label>
            <span>选项卡1</span>
        </div>
        <div class="label">
            <label for="label2"></label>
            <span>选项卡2</span>
        </div>
        <div class="label">
            <label for="label3"></label>
            <span>选项卡3</span>
        </div>
        <div class="panels">
            <div class="panel">面板1</div>
            <div class="panel">面板2</div>
            <div class="panel">面板3</div>
        </div>
    </div>
</body>
</html>